package com.jiyinit.web.core.business.vo;

import com.jiyinit.core.framework.base.util.Check;
import com.jiyinit.web.core.common.config.PropertyPlaceholderConfigurer;

/**
 * Created by lr on 2017/12/1.
 */
public class ContactsVo {

    private Integer userId;
    private String userName;
    private Integer orgId;
    private Integer orgLevel;
    private Integer parentId;
    private String orgName;
    private Integer inOrder;
    private String avatar;
    private String userMobileNo;
    private String taskId;
    private Integer identity; // 群组成员身份 1：创建者  2：成员
    private String companyName; //公司名称
    private String userGroupNo; //集团号

    public String getUserGroupNo() {
        return userGroupNo;
    }

    public void setUserGroupNo(String userGroupNo) {
        this.userGroupNo = userGroupNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public Integer getInOrder() {
        return inOrder;
    }

    public void setInOrder(Integer inOrder) {
        this.inOrder = inOrder;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(Integer orgLevel) {
        this.orgLevel = orgLevel;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getAvatar() {
        if(!Check.isNullStr(avatar))
        {
            String picPath = (String) PropertyPlaceholderConfigurer.getContextProperty("USER_AVATAR");
            return picPath+avatar;
        }
        else
        {
            return "";
        }
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserMobileNo() {
        return userMobileNo;
    }

    public void setUserMobileNo(String userMobileNo) {
        this.userMobileNo = userMobileNo;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
}
